package icu.mohan.erp.call.business;

import static icu.mohan.erp.call.constant.SeatUrl.*;

import java.util.Map;

import icu.mohan.erp.call.model.CommonResponse;
import icu.mohan.erp.call.service.CallApiService;
import lombok.AllArgsConstructor;

/**
 * 坐席管理
 * 
 * @author yanglihao
 */
@AllArgsConstructor
public class SeatBusiness {

    private CallApiService callApiService;

    /**
     * 创建坐席
     */
    public CommonResponse createSeat(Map<String, String> requestBody) throws Exception {
        return callApiService.post(CREATE_SEAT, requestBody);
    }

    /**
     * 变更坐席名称
     */
    public CommonResponse updateSeatName(Map<String, String> requestBody) throws Exception {
        return callApiService.post(UPDATE_SEAT_NAME, requestBody);
    }

    /**
     * 变更坐席号码
     */
    public CommonResponse updateSeatTel(Map<String, String> requestBody) throws Exception {
        return callApiService.post(UPDATE_SEAT_TEL, requestBody);
    }

    /**
     * 删除坐席
     */
    public CommonResponse disableSeat(Map<String, String> requestBody) throws Exception {
        return callApiService.post(DISABLE_SEAT, requestBody);
    }

    /**
     * 坐席号码详情查询
     */
    public CommonResponse querySeat(Map<String, String> requestBody) throws Exception {
        return callApiService.post(QUERY_SEAT, requestBody);
    }

    /**
     * 坐席号码更换子账号
     */
    public CommonResponse changeAccount(Map<String, String> requestBody) throws Exception {
        return callApiService.post(CHANGE_ACCOUNT, requestBody);
    }
}
